import {Result} from "@/api/Result";

export interface LoginParams {
    mobile: string;
    code: string;
}


// 登录响应接口
export interface LoginResData {
    id: number;
    mobile: string;
    token: string;
}

export interface QueryMineRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: {
        /* */
        id: number;

        /* */
        memberId: number;

        /* */
        name: string;

        /* */
        idCard: string;

        /* */
        type: string;

        /* */
        createTime: Record<string, unknown>;

        /* */
        updateTime: Record<string, unknown>;
    }[];
}

export type LoginRes = Result<LoginResData>;
// 验证码响应接口
export type SendCodeRes = Result<null>;

export type MemberCountRes = Result<number>;

export interface SaveParams {
    /* */
    id?: number;

    /* */
    memberId: number;

    /* */
    passengerId: number;

    /* */
    passengerName?: string;

    /* */
    trainDate: Record<string, unknown>;

    /* */
    trainCode: string;

    /* */
    carriageIndex: number;

    /* */
    seatRow: string;

    /* */
    seatCol: string;

    /* */
    startStation: string;

    /* */
    startTime: Record<string, unknown>;

    /* */
    endStation: string;

    /* */
    endTime: Record<string, unknown>;

    /* */
    seatType: string;

    /* */
    createTime?: Record<string, unknown>;

    /* */
    updateTime?: Record<string, unknown>;
}

// 响应接口
export interface SaveRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: Record<string, unknown>;
}

// 参数接口
export interface QueryParams {
    /* */
    pageNum?: number;

    /* */
    pageSize?: number;
}

// 响应接口
export interface QueryRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: {
        /* */
        id: number;

        /* */
        memberId: number;

        /* */
        passengerId: number;

        /* */
        passengerName: string;

        /* */
        trainDate: Record<string, unknown>;

        /* */
        trainCode: string;

        /* */
        carriageIndex: number;

        /* */
        seatRow: string;

        /* */
        seatCol: string;

        /* */
        startStation: string;

        /* */
        startTime: Record<string, unknown>;

        /* */
        endStation: string;

        /* */
        endTime: Record<string, unknown>;

        /* */
        seatType: string;

        /* */
        createTime: Record<string, unknown>;

        /* */
        updateTime: Record<string, unknown>;
    }[];

    /* */
    total: number;
}

// 响应接口
export interface DeleteByIdRes {
    /* */
    success: boolean;

    /* */
    message: string;

    /* */
    data: Record<string, unknown>;
}





